KoverVerifyTaskConfig

Configuration of the coverage's result verification with the specified rules.

Example:

verify {
    onCheck = true

    rule {
        // ...
    }

    rule("Custom Name") {
        // ...
    }

    // fail on verification error
    warningInsteadOfFailure = false
}

Functions

Link copied to clipboard
abstract fun rule(config: Action<KoverVerifyRule>)

Add new coverage verification rule to check after test task execution.

abstract fun rule(name: String, config: Action<KoverVerifyRule>)

Add new named coverage verification rule to check after test task execution.

Properties

Link copied to clipboard
abstract val onCheck: Property<Boolean>

Verify coverage when running the check task.

Link copied to clipboard
abstract val warningInsteadOfFailure: Property<Boolean>

In case of a verification error, print a message to the log with the warn level instead of the Gradle task execution error.